Params

interface Params

The parameters of the ShowContextMenuCallback.

Functions

Link copied to clipboard
open fun browser(): Browser
Returns the Browser instance requested to display this context menu.
Link copied to clipboard
Returns an immutable list of the custom context menu items.
Link copied to clipboard
open fun frameCharset(): String
Returns the character encoding of the frame on which the menu is invoked.
Link copied to clipboard
open fun frameUrl(): String
Returns the URL of the frame that the context menu is invoked on.
Link copied to clipboard
open fun isMainFrame(): Boolean
Returns true if the context menu is invoked on the main frame.
Link copied to clipboard
open fun linkText(): String
Returns the text associated with the link.
Link copied to clipboard
open fun linkUrl(): String
Returns the URL of the link that encloses the node the context menu is invoked on.
Link copied to clipboard
open fun location(): Point
Returns the context menu location.
Link copied to clipboard
open fun mediaType(): MediaType
Returns the media type of the node the context menu is invoked on.
Link copied to clipboard
open fun pageUrl(): String
Returns the source URL of the top level page that the context menu is invoked on.
Link copied to clipboard
open fun selectedText(): String
Returns the text of the selection that the context menu is invoked on.
Link copied to clipboard
Returns the spell check sub menu.
Link copied to clipboard
open fun srcUrl(): String
Returns the source URL of the HTML element that the context menu is invoked on.